import java.util.ArrayList;
import java.util.Collections;

public class test2 {
    public static void main(String[] args) {
        Integer a=127;
        Integer b=127;
        Integer c=128;
        Integer d=128;
        ArrayList<Integer>list=new ArrayList<>();
        list.add(a);
        list.add(b);
        list.add((c));
        list.add((d));
        System.out.println(Collections.max(list));
        System.out.println(a==b);
        System.out.println(c==d);
    }
}
